package com.rayboo.example.design.pattern.singleton;

public class FirstPage {

    public void getCurrentConfigs() {
        ConfigsManager manager = ConfigsManager.getInstance();
        System.out.println("第一个页面："
                + "当前文字大小为" + manager.getFontSize()
                + ", 当前聊天背景为" + manager.getChatBackground());
    }

    public void changeFontSize(String fontSize) {
        ConfigsManager manager = ConfigsManager.getInstance();
        manager.setFontSize(fontSize);
    }

    public void changeChatBackground(String chatBackground) {
        ConfigsManager manager = ConfigsManager.getInstance();
        manager.setChatBackground(chatBackground);
    }
}
